package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

/**
 * <p>
 * 订单管理
 * </p>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders_management")
public class OrdersManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId(value = "o_id", type = IdType.AUTO)
    @JsonProperty("oId")
    private Integer oId;

    /**
     * 商品ID
     */
    @JsonProperty("oGoodsId")
    private Integer oGoodsId;

    /**
     * 卖方用户ID
     */
    @JsonProperty("oUserIdOne")
    private Integer oUserIdOne;

    /**
     * 买方用户ID
     */
    @JsonProperty("oUserIdTwo")
    private Integer oUserIdTwo;

    /**
     * 订单交易金额
     */
    @JsonProperty("oTotalAmount")
    private BigDecimal oTotalAmount;

    /**
     * 订单状态，进行中/已完成
     */
    @JsonProperty("oStatus")
    private String oStatus;

    /**
     * 订单创建时间
     */
    @JsonProperty("oCreateTime")
    private Date oCreateTime;
}
